/// @description 绘制对话框
// You can write your code in this editor
NineSliceBoxStreched(sTextBoxBg, x1, y1, x2, y2, background);


draw_set_halign(fa_center);
draw_set_valign(fa_top);
draw_set_color(c_black);
var _print = string_copy(messageText, 1, textProgress);
if((response[0] != -1)&& (textProgress >= string_length(messageText)))
{
	for(var i = 0; i < array_length(response); i++)
	{
		_print += "\n";
		if(i == responseSelected) _print += ">";
		_print += response[i];
		if(i == responseSelected) _print += "<";

	}
}


draw_text((x1 + x2) / 2, y1 + 8, _print);
draw_set_color(c_white);
draw_text((x1 + x2) / 2, y1 + 7, _print);